package com.xjcs.notetools.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xjcs.notetools.R
import com.xjcs.notetools.bean.MainNavigationBean

class MainNavigationAdapter(
    layoutId: Int,
    data: MutableList<MainNavigationBean>? = null
): BaseQuickAdapter<MainNavigationBean, BaseViewHolder>(layoutId, data) {
    override fun convert(holder: BaseViewHolder, item: MainNavigationBean) {
        holder.setImageResource(R.id.ivImg, item.icon)
        holder.setText(R.id.tvTitle, item.name)
    }
}